require('../handwritingJS');

let arr = [1,2,3,4,5,6];

// let ev = []._every((item, index, data)=>{
//   return item;
// });
// console.log(ev);
//
// console.log([]._some(function (item, index) {
//   return item
// }));
//
// let findall = arr._findAllIndex((item, index, data)=>{
//   return item%3==0
// });
// console.log(findall)
//
//
// let s = arr.join('-');
//
// console.log(s)
//
// let s1 = arr._join(',');
// console.log(s1);
//
// let reverse = arr._reverse(true);
//
// console.log(reverse)
//
// let arr2 = [1,'32','43',true,false,{a:1},function () {
//  let s = 1;
// }];
//
// let reverse1 = arr2._reverse();
// console.log(reverse1)
// let reverse2 = arr2._reverse(true);
// console.log(reverse2)


// let fill = new Array(20)._fill(3,5,3);
// console.log(fill)

// let b = arr._includes(3,7);
// console.log(b);

//
// let from = arr.from();
// console.log(from)


// let shuffle = arr._shuffle();
//
// console.log(shuffle)

// let a = [1,2]
// let sample = arr._sample(4);
//
// console.log(sample);
//
//
// let partition = arr._partition(function (item) {
//    return item%2 == 0;
// });
// console.log(partition)
//
// let a = [1,3,4,5,"",null,undefined,NaN,false,0]
// let numbers = a._compact();
// console.log(numbers)


// let rest = arr._rest();
// console.log(rest)

// let initial = arr._initial();
//
// console.log(initial)
// let without = arr._without(1,2);
// console.log(without)

// let union = arr._union([3,4,84,6],[5,32,2,4,5,[32,5,3,2,32,1212],6,78,32],[1,43,5,6,7]);
// console.log(union);
//
// let difference = arr._difference(1,2,3);
// console.log(difference)

// let range = arr._range(0);
// console.log(range)
//
// let dropRight = arr._dropRight(2);
// console.log(dropRight)
//
//
// let map = arr._map(function (item, index) {
//   return item%2==0
// });
// console.log(map);
//
// let slice = arr._slice(0,1);
// let s = console.log(slice)

// /**
//  *
//  * @type {number[]}
//  */
// let numbers = arr._concat([324,34,55,23,12],2,4,5,6,2);
// console.log(numbers)
//
// let number = arr._push(1,23,4,5,[2,4,5],null);
//
// console.log(number)

// let s1 = []._join('');
// console.log(s1)

let reverse = ['I','Love','Node' ,'And','Javascript']._reverse();
console.log(reverse)
let reverse1 = ['I','Love','Node' ,'And','Javascript']._reverse(true);
console.log(reverse1)